<?php

// No direct access.
defined('_JEXEC') or die;
JHtml::_('behavior.framework', true);

// get params
$color              = $this->params->get('templatecolor');
$logo               = $this->params->get('logo');
$navposition        = $this->params->get('navposition');
$app                = JFactory::getApplication();
$doc				= JFactory::getDocument();
$templateparams     = $app->getTemplate(true)->params;

$doc->addScript($this->baseurl.'/templates/'.$this->template.'/javascript/md_stylechanger.js', 'text/javascript', true);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xml:lang="<?php echo $this->language; ?>"
	lang="<?php echo $this->language; ?>"
	dir="<?php echo $this->direction; ?>">
<head>
<jdoc:include type="head" />
<link rel="stylesheet"
	href="<?php echo $this->baseurl ?>/templates/system/css/system.css"
	type="text/css" />
<link rel="stylesheet"
	href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/position.css"
	type="text/css" media="screen,projection" />
<link rel="stylesheet"
	href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/layout.css"
	type="text/css" media="screen,projection" />
<link rel="stylesheet"
	href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/print.css"
	type="text/css" media="print" />
<?php
$files = JHtml::_('stylesheet', 'templates/'.$this->template.'/css/general.css', null, false, true);
if ($files):
if (!is_array($files)):
$files = array($files);
endif;
foreach($files as $file):
?>
<link rel="stylesheet" href="<?php echo $file;?>" type="text/css" />
<?php
endforeach;
endif;
?>
<link rel="stylesheet"
	href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/<?php echo htmlspecialchars($color); ?>.css"
	type="text/css" />
<?php			if ($this->direction == 'rtl') : ?>
<link rel="stylesheet"
	href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/template_rtl.css"
	type="text/css" />
<?php				if (file_exists(JPATH_SITE . '/templates/vinavet/css/' . $color . '_rtl.css')) :?>
<link rel="stylesheet"
	href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/<?php echo $color ?>_rtl.css"
	type="text/css" />
<?php				endif; ?>
<?php			endif; ?>
<!--[if lte IE 6]>
                <link href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/ieonly.css" rel="stylesheet" type="text/css" />

                <?php if ($color=="personal") : ?>
                <style type="text/css">
                #line
                {      width:98% ;
                }
                .logoheader
                {
                        height:200px;

                }
                #header ul.menu
                {
                display:block !important;
                      width:98.2% ;


                }
                 </style>
                <?php endif;  ?>
                <![endif]-->
<!--[if IE 7]>
                        <link href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/ie7only.css" rel="stylesheet" type="text/css" />
                <![endif]-->
<script type="text/javascript"
	src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/javascript/hide.js"></script>

<script type="text/javascript">
                        var big ='<?php echo (int)$this->params->get('wrapperLarge');?>%';
                        var small='<?php echo (int)$this->params->get('wrapperSmall'); ?>%';
                        var altopen='<?php echo JText::_('TPL_VINAVET_ALTOPEN', true); ?>';
                        var altclose='<?php echo JText::_('TPL_VINAVET_ALTCLOSE', true); ?>';
                        var bildauf='<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/images/plus.png';
                        var bildzu='<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/images/minus.png';
                        var rightopen='<?php echo JText::_('TPL_VINAVET_TEXTRIGHTOPEN', true); ?>';
                        var rightclose='<?php echo JText::_('TPL_VINAVET_TEXTRIGHTCLOSE'); ?>';
                        var fontSizeTitle='<?php echo JText::_('TPL_VINAVET_FONTSIZE'); ?>';
                        var bigger='<?php echo JText::_('TPL_VINAVET_BIGGER'); ?>';
                        var reset='<?php echo JText::_('TPL_VINAVET_RESET'); ?>';
                        var smaller='<?php echo JText::_('TPL_VINAVET_SMALLER'); ?>';
                        var biggerTitle='<?php echo JText::_('TPL_VINAVET_INCREASE_SIZE'); ?>';
                        var resetTitle='<?php echo JText::_('TPL_VINAVET_REVERT_STYLES_TO_DEFAULT'); ?>';
                        var smallerTitle='<?php echo JText::_('TPL_VINAVET_DECREASE_SIZE'); ?>';
                </script>

</head>

<body>
	<div id="all">
		<div id="back">
			<div id="header">
				<div class="logoheader">
					<h1 id="logo">
						<?php if ($logo): ?>
						<img
							src="<?php echo $this->baseurl ?>/<?php echo htmlspecialchars($logo); ?>"
							alt="<?php echo htmlspecialchars($templateparams->get('sitetitle'));?>" />
						<?php endif;?>
						<?php if (!$logo ): ?>
						<?php echo htmlspecialchars($templateparams->get('sitetitle'));?>
						<?php endif; ?>
						<span class="header1"> <?php echo htmlspecialchars($templateparams->get('sitedescription'));?>
						</span>
					</h1>
				</div>
				<!-- end logoheader -->
				<ul class="skiplinks">
					<li><a href="#main" class="u2"><?php echo JText::_('TPL_VINAVET_SKIP_TO_CONTENT'); ?>
					</a></li>
					<li><a href="#nav" class="u2"><?php echo JText::_('TPL_VINAVET_JUMP_TO_NAV'); ?>
					</a></li>
				</ul>
				<h2 class="unseen">
					<?php echo JText::_('TPL_VINAVET_NAV_VIEW_SEARCH'); ?>
				</h2>
				<h3 class="unseen">
					<?php echo JText::_('TPL_VINAVET_NAVIGATION'); ?>
				</h3>
				<jdoc:include type="modules" name="head-bottom" />
				<div id="line">
					<div id="fontsize"></div>
					<h3 class="unseen">
						<?php echo JText::_('TPL_VINAVET_SEARCH'); ?>
					</h3>
					<jdoc:include type="modules" name="head-right" />
				</div>
				<!-- end line -->
			</div>
			<!-- end header -->
			
		</div>
		<!-- back -->
	</div>
	<!-- all -->
	<div id="body">
		<jdoc:include type="modules" name="body-top"/>			
	</div>
	<div id="footer-outer">
		<div id="footer-sub">
			<div id="footer">
				<jdoc:include type="modules" name="position-14" />
				<p>
					<?php echo JText::_('TPL_VINAVET_POWERED_BY');?>
					<a href="http://www.joomla.org/">Joomla!&#174;</a>
				</p>
			</div>
			<!-- end footer -->
		</div>
	</div>
	<jdoc:include type="modules" name="debug" />
</body>
</html>
